package com.meisupic.copyright.domain.po;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.DynamicUpdate;

/**
 * @Author wuxun
 * @Date 2018/1/25 下午5:10
 */
@Data
@Entity
@Table(name = "copyright_business_cooperation_info")
@DynamicUpdate
public class BusinessCooperationInfo {

  @Id
  @GeneratedValue
  private Long id;


  /**
   * 联系人姓名
   */
  @Column(name="contacts_name",length = 100 ,nullable = false)
  private String contactsName;

  /**
   * 联系人电话号码
   */
  @Column(name = "contact_phone", length = 20, nullable = false)
  private String contactPhone;

  /**
   * 公司名称
   */
  @Column(name = "company_name",length = 100)
  private String compName;


  /**
   * 创建时间
   */
  @Column(name = "create_time", nullable = false)
  @CreationTimestamp()
  private Date createTime;
}
